<template>
<div class="box_main">
  <div class="content">
    <div class="img_box">
      <img :src="prop.goods_img">
    </div>
    <div class="page">
      <div class="goods_name">
        <div class="goods_title">名称：</div>
        <div class="goods_title_info">{{prop.title}}</div>
      </div>
      <div class="goods_name">
        <div class="goods_title">价格：</div>
        <div class="goods_title_info">￥{{prop.prince}}元</div>
      </div>
      <div class="goods_name">
        <div class="shop_link"><a :href="prop.shop_src" target="_blank">{{prop.shop_name}}</a></div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
  export default {
    name: 'index',
    props:['prop'],
    data(){
      return {

      }
    },
    methods:{

    },
    mounted () {
    }
  }
</script>

<style scoped lang="scss">
.box_main{
  transform: translateY(-20px);
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .content{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    .img_box{
      width: 200px;
      height: 200px;
      img{
        width: 100%;
        height: 100%;
      }
    }
    .page{
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .goods_name{
        margin-top: 10px;
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        .goods_title{
          flex: 1;
          margin-left: 20px;
          width: 100px;
          color: #418d97;
          font-size: 20px;
        }
        .goods_title_info{
          flex: 3;
          width: 200px;
          font-size: 11px;
          color: #8debf5;
          text-indent: 10px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap
        }
      }
    }
  }
  .shop_link{
    a{
      color: #69c7d2;
    }
  }
}
</style>
